import request from '@/utils/request';

// 获取对应用户下所拥有的项目
export const findAllProjrctList = () => {
    return request('https://sc.hyc.cn/api/v4/projects?access_token=bw_wkMYrdmq_hJn67wUV', {
        method: 'get',
    });
};

// 获取对应用户下所拥有的项目
export const ProjrctList = () => {
    return request('https://sc.hyc.cn/api/v4/projects/2112/clusters?access_token=bw_wkMYrdmq_hJn67wUV', {
        method: 'get',
    });
};

// 获取某个项目下的具体分支
export const getProjectBranches = (data: any) => {
    return request(`https://sc.hyc.cn/api/v4/projects/${data.id}/repository/branches?access_token=bw_wkMYrdmq_hJn67wUV`, {
        method: 'get',
    });
};

// 获取对应用户下所管理的成员
export const getUserList = () => {
    return request('https://sc.hyc.cn/api/v4/users?access_token=bw_wkMYrdmq_hJn67wUV', {
        method: 'get',
    });
};

